package com.jch.dm.chapter_8_abstract_factory.tablefactory;

import com.jch.dm.chapter_8_abstract_factory.factory.Link;

/**
 * @author: jch
 * 具体零件类
 **/
public class TableLink extends Link {
    public TableLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return "<td><a href=\"" + url + "\">" + caption + "</a></td>\n";
    }
}
